﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DTO;
using DAO;
namespace BUS
{
    public class ChiTietHoaDonBUS
    {
        public List<ChiTietHoaDonDTO> DanhSachChiTietHoaDon()
        {
            ChiTieHoaDonDAO ctDAO = new ChiTieHoaDonDAO();
            return ctDAO.DanhSachChiTietHoaDon();
        }
        public string ThemChiTietHoaDon(ChiTietHoaDonDTO ctDTO)
        {
            ChiTieHoaDonDAO ctDAO = new ChiTieHoaDonDAO();
            return ctDAO.ThemChiTietHoaDon(ctDTO);
        }
        public int LayMaChiTietHoaDon()
        {
            ChiTieHoaDonDAO ctDAO = new ChiTieHoaDonDAO();
            return ctDAO.LayMaChiTietHoaDon();
        }
        public string XoaChiTietHoaDon(int maCT)
        {
            ChiTieHoaDonDAO ctDAO = new ChiTieHoaDonDAO();
            return ctDAO.XoaChitietHoaDon(maCT);
        }
    }
}
